﻿<navigation:PhoneApplicationPage 
    x:Class="RSSR.Page1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    SupportedOrientations="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480" Loaded="PhoneApplicationPage_Loaded">

    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="170"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--This is the name of the application and page title-->
        <Grid Grid.Row="0" x:Name="TitleGrid">
            <TextBlock x:Name="ApplicationName" Text="rssreader" Style="{StaticResource PhoneTextPageTitle1Style}"/>
            <TextBlock x:Name="ListName" Text="add new feed" Style="{StaticResource PhoneTextPageTitle2Style}"/>
        </Grid>

        <!--This section is empty. Place new content here Grid.Row="1"-->
        <Grid Grid.Row="1" x:Name="ContentGrid">
            <TextBlock Height="46" HorizontalAlignment="Left" Margin="20,19,0,0" Name="textBlock1" Text="Feed URL" VerticalAlignment="Top" Width="137" Foreground="White" FontSize="24" />
            <TextBox HorizontalAlignment="Left" Margin="6,59,0,0" Name="txtFeedURL" Text="" Width="468" Height="71" VerticalAlignment="Top" />
            <Button Content="Load Info" Height="70" HorizontalAlignment="Left" Margin="6,121,0,0" Name="btnLoadInfo" VerticalAlignment="Top" Width="470" Click="btnLoadInfo_Click" />
            <ListBox Height="347" HorizontalAlignment="Left" Margin="6,199,0,0" Name="lbFeedInfo" VerticalAlignment="Top" Width="470">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Vertical" Height="75">
                            <TextBlock TextWrapping="Wrap" Text="{Binding Key}" Foreground="#FFC8AB14" FontSize="28" />
                            <TextBlock TextWrapping="Wrap" Text="{Binding Value}" FontSize="18" Width="430" />
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <Button Content="Save Feed" Height="70" HorizontalAlignment="Left" Margin="6,552,0,0" Name="btnSaveFeed" VerticalAlignment="Top" Width="469" IsEnabled="False" Click="btnSaveFeed_Click" />
            <ProgressBar Height="10" HorizontalAlignment="Left" Margin="10,10,0,0" Name="progressBar1" VerticalAlignment="Top" Width="460" />
        </Grid>
        
    </Grid>
</navigation:PhoneApplicationPage>